package com.gccloud.design.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gccloud.design.entity.SdRepoLimitTimeEntity;

import java.util.List;

/**
 * 环节时限设置
 *
 * @author 冯海琴
 */
public interface LimitTimeConfigService extends IService<SdRepoLimitTimeEntity> {
    /**
     * 环节时限设置：为某个环节添加环节时限
     *
     * @param sdRepoLimitTimeEntity 环节时限配置实体
     * @return true/false
     */
    boolean addLimitTime(SdRepoLimitTimeEntity sdRepoLimitTimeEntity);

    /**
     * 环节时限设置：获取当前环节的环节时限
     *
     * @param sdRepoLimitTimeEntity 环节时限配置实体
     * @return 列表
     */
    List<SdRepoLimitTimeEntity> getTimeLimit(SdRepoLimitTimeEntity sdRepoLimitTimeEntity);
}
